package jhub.img;

import java.io.IOException;
import java.net.ServerSocket;

public class SignatureWebServer {

	public SignatureWebServer() throws IOException {
		super();
		//Establish the listen socket
        int PORT = 5306;     //select your favorite number > 1123
        ServerSocket listenSocket = new ServerSocket(PORT);

        //Process HTTP service requests in an infinite loop
        while(true) {
            //listen for TCP connection request
            //Construct an object to process the HTTP request message
            HttpRequest request;
			try {
				request = new HttpRequest(listenSocket.accept());
			
            Thread thread = new Thread(request);
            thread.start();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
        }
	}
	public static void main(String[] args) {
		
	}
}
